home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
6_14.lha
/
6_14
/
tstb.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
700b
|
32 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
oid error(char *fmt)
cout << fmt << "\n";
include "6_14b.c"
ain()
tiny c1 = 2;
cout << "c1 = " << int(c1) << "\n";
tiny c2 = 62;
cout << "c2 = " << int(c2) << "\n";
tiny c3 = c2 - c1;
cout << "c3 = " << int(c3) << "\n";
tiny c4 = c3;
cout << "c4 = " << int(c4) << "\n";
int i = c1 + c2;
cout << "i = " << int(i) << "\n";
c1 = c2 + 2 * c1;
cout << "c1 = " << int(c1) << "\n";
c2 = c1 - i;
cout << "c2 = " << int(c2) << "\n";
c3 = c2;
cout << "c3 = " << int(c3) << "\n";
return 0;